GET ITEM/A,TARGET/K,VAR/K,STEM/K,PAT=PATTERN/K,ALL/SObtain various kinds of information about the program or the document in the addressed window or in the specified frame.
Argument | Description |
---|---|
ITEM | Specifies the kind of information to obtain. See above for a list of all valid item names. |
TARGET | The target name of the window or frame to obtain information from. |
VAR | The name of a variable to return the information in. If no
name is specified, the single valued result will be returned in the
reserved ARexx variable RESULT .
|
STEM | The name of a stem variable to return an array of structured information in. Do not include the trailing period in this name. |
PATTERN | The meaning of this argument depends on the ITEM obtained. |
ALL | The meaning of this switch depends on the ITEM obtained. |
ITEM
values. Refer to the
individual descriptions for the template containing all valid arguments.
GET ACTIVEPORT VAR/KObtain the name of the ARexx port associated with the most recently activated AWeb window. Useful in ARexx macros started via a shell script or shell command to find the active window.
GET CACHE STEM/K,PAT=PATTERN/KObtain details of the files currently residing in AWeb's disk cache.
If a PATTERN is given, then only the cache entries will be returned that
match this URL pattern using standard DOS wildcards.
When the pattern does not include a scheme (like http://
),
the scheme part of each URL is not included in the pattern match. So
a pattern "foo.bar#?" matches "http://foo.bar/xyz.html" and
"ftp://foo.bar/zoo".
Name | Description |
---|---|
URL | The URL for the cached file. |
TYPE | The MIME type of the cached file. |
SIZE | The size in bytes of the cached file. |
DATE | The date that this file was retrieved, in internal system
days (like returned by the DATE('I') command).
|
FILE | The full path and file name of the cached copy. IMPORTANT: Never delete or modify these files other than via AWeb ARexx commands! |
GET CLIP VAR/KObtain the current contents of the clipboard. Due to various internal limitations, a maximum of 8192 characters is returned.
GET COOKIES STEM/A/KObtain an array with the details of all currently known HTML cookies.
Name | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
NAME | The name of this cookie. | ||||||||
VALUE | The value of this cookie. | ||||||||
DOMAIN | The domain for which this cookie is sent. | ||||||||
PATH | The path (within the domain) for which this cookie is sent. | ||||||||
EXPIRES | The date and time in GMT string format when this cookie will expire. If this field is the empty string, the cookie is temporary and will not be remembered when AWeb exits. | ||||||||
COMMENT | An optional comment for the cookie. | ||||||||
VERSION | An optional version number for the cookie. | ||||||||
FLAGS | A string containing zero or more of the following letters:
|
GET FINALURL TARGET/K,VAR/KObtain the final URL of the document currently displayed in the addressed window or the specified frame.
There is a difference with the GET URL command when dealing with relocated URLs. This happens when the result of fetching one URL is only a reference to another document with a different URL. The standards say specifically that for one such type of relocation, the original URL must be used in the interface to the user, not the second one that is the actual URL for the document displayed. The GET URL command returns the original URL in this case, while the GET FINALURL command returns the second one.
GET FOCUS VAR/KObtain the frame ID of the frame that currently has the keyboard scroll focus. If the main window has the focus, an empty string will be returned.
GET FRAMES TARGET/K,STEM/A/K,ALL/SObtain an array with the names and IDs of all frames directly subordinate to the command's target window or frame. If the ALL switch is set, also details of all nested frames are returned.
Name | Description |
---|---|
ID | A unique (within the addressed window) identification for
the frame. Frames do not necessarily have a name, but will always have
an ID. The ID is recognized by the leading # sign, and can
be used in TARGET ARexx arguments.
Note that this ID can not be used in HTML |
NAME | Name of the frame, as defined by the NAME attribute in the <FRAME> HTML tag. |
TITLE | The title of the document loaded in the frame. If the document has no title defined, the URL of this document is returned. |
URL | The URL of the document loaded in the frame. |
GET FRAMESET TARGET/K,VAR/KObtain a boolean value specifying if the document in the target window or frame is a frameset document. If the document is a frameset document, "1" is returned. If the document is a normal document, "0" is returned. Note that normal documents still can contain inlined frames (<IFRAME>).
GET HOTLIST STEM/A/KObtain an array with all entries of AWeb's hotlist.
Name | Description |
---|---|
GROUP | "1" if this array element defines a group, or "0" if this array element defines a single entry. |
TITLE | Title of the group or entry, as shown in the hotlist. |
URL | URL of this entry. Only defined for single entries, not for groups. |
OWNER | The array index number for the group that is the direct owner of this array element. This will be 0 if this element has no owner (it is a root level group, or an unassigned entry). |
GET IMAGES TARGET/K,STEM/A/KObtain an array with information of all embedded images in the HTML document in the addressed window or the specified frame.
Name | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
ALT | The ALT text for this image, if any. | ||||||||
TYPE | The type of image. This will be one of the following:
| ||||||||
URL | The URL for the image. |
GET INFO TARGET/K,STEM/A/KObtain HTTP headers and <META> and <LINK> information from the document in the addressed window or the specified frame.
Name | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
TYPE | Type of information. This will be one of the following:
| ||||||||
VALUE | Depending on the returned TYPE: the HTTP header, the META name and contents, or the LINK title. | ||||||||
URL | The URL linked to. Only present if TYPE equals "LINK". |
GET LINKS TARGET/K,STEM/A/KObtain an array with information of all hyperlinks in the HTML document in the addressed window or the specified frame.
Name | Description |
---|---|
TARGET | The target frame name, as defined in the TARGET
HTML attribute.
|
URL | The URL this link points to. |
GET MIME TARGET/K,VAR/KObtain the MIME content type of the document currently displayed in the addressed window or the specified frame.
GET NAMES TARGET/K,STEM/A/KObtain an array with all fragment names (defined by <A NAME="name">) in the HTML document in the addressed window or the specified frame.
Name | Description |
---|---|
NAME | The fragment name. |
GET PORT TARGET/KObtain the ARexx portname for the window that contains the frame with the specified name.
GET SCREEN VAR/KObtain the name of the public screen that AWeb uses to open its windows on.
GET SECURE TARGET/K,VAR/KObtain a boolean value specifying if the document in the target window or frame is retrieved over a secure connection. If the document is secure, "1" is returned, else "0" is returned.
GET SELECTION VAR/KObtain the currently selected text.
Note that due to an ARexx limitation, only the first 65535 bytes are returned.
GET SOURCE TARGET/K,VAR/KObtain the source code of the document currently displayed in the addressed window or the specified frame.
Note that due to an ARexx limitation, only the first 65535 bytes are returned.
GET STATUS VAR/KObtain the current text in the status field of the addressed window. Note that this text may be obscured by dynamic text, see the GET STATUSD command.
GET STATUSD VAR/KObtain the dynamic text currently displayed in the status field of the addressed window. Dynamic text will be displayed if the mouse is over an active element in the document, like a hyperlink.
This dynamic text obscures any static text, see the GET STATUS command. Static text is only visible if the dynamic text is the empty string.
GET TITLE TARGET/K,VAR/KObtain the title of the document currently displayed in the addressed window or the specified frame. If the document has no title defined, the URL of this document is returned.
GET TRANSFERS STEM/A/KObtain all currently active transfers (loading documents). This is essentially the same information as shown in the network status window.
The information returned is a snapshot. Immediately after this command returns the actual transfer status may already have changed.
Name | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
URL | The URL that is being downloaded. | ||||||||||||||||||
STATUS | A number designating the status of this transfer. It will contain
one of the following values:
| ||||||||||||||||||
READ | If STATUS is 9, the number of characters already downloaded. | ||||||||||||||||||
TOTAL | The expected size of the document, in characters.
This information is not always available. If the expected size is unknown, TOTAL will be set to zero. | ||||||||||||||||||
LOADID | An ID number to identify the transfer. Use this number in the CANCEL command to cancel a specific transfer. |
GET URL TARGET/K,VAR/KObtain the URL of the document currently displayed in the addressed window or the specified frame.
See the GET FINALURL command for an explanation of URL relocation.
GET VERSION VAR/KObtain the version of AWeb. The string returned starts with numeric "version.revision".
GET WINDOW VAR/KObtain the rectangle describing the location and size of the addressed window.
GET WINDOWS STEM/A/KObtain an array with details of all open AWeb windows.
Name | Description |
---|---|
PORT | The name of the ARexx port of the window. |
RECT | A rectangle describing the location and size of the window. |
ZOOMED | If the window is in zoomed state, this contains "1", else this contains "0". |